local addonName = "Civilian"
local Plugin = TargetAlert:NewModule(addonName)

function Plugin:OnEnable()
end

function Plugin:OnDisable()

end

function Plugin:OnTargetChanged()
	if UnitIsCivilian("target") then
		self:Print("Civilian unit targeted")
	end
    --[[if( UnitIsCivilian( "target" ) ) == 1 then
		if self.db.profile.showInChat then
            self:Print(self.db.profile.message)
        end

		if self.db.profile.showOnScreen then
            UIErrorsFrame:AddMessage(self.db.profile.message, 1.0, 0.0, 0.0, 1.0, 5)
        end
		
		if self.db.profile.playSound then
			if(PlaySoundFile( "Interface\\Addons\\asCivilianAlert\\Sounds\\" .. self.db.profile.customSoundName ) == nil) then
				self:Print("Error occured when playing sound")
			end
		end
    end--]]
	--self:Print("CivilianPlugin:OnTargetChanged")
end


